import { createRouter, createWebHashHistory } from 'vue-router'
import MainBox from '../views/MainBox.vue'
import AdvertiList from '../views/adverti-manage/AdvertiList.vue'
import AdvertiAdd from '../views/adverti-manage/AdvertiAdd.vue'

const routes = [
  {
    path: '/',
    name: 'MainBox',
    component: MainBox,
    children:[
      {
        path: '/AdvertiList',
        name: 'AdvertiList',
        component: AdvertiList,
      },
      {
        path: '/AdvertiAdd',
        name: 'AdvertiAdd',
        component: AdvertiAdd,
      }
    ]
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
